package com.wteam.PoJo.DTO;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("订单")
public class listorder {
    @ApiModelProperty("订单id")
    private Integer id;

    @ApiModelProperty("取消订单原因")
    private String cancelReason;

    @ApiModelProperty("优惠的金额")
    private Double discountPrice;

    @ApiModelProperty("优惠后的金额")
    private Double discountFlowPrice;

    @ApiModelProperty("原价")
    private Double flowPrice;

    @ApiModelProperty("订单编号")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long sn;

    @ApiModelProperty("使用的优惠卷id")
    @TableField("usePlatformMemberCouponId")
    private Integer use_platform_member_coupon_id;

    @ApiModelProperty("使用的积分量")
    private Integer usepoint;

    @ApiModelProperty("一个订单的商品集合")
    private List<OrderGoods> listordergoods;

    @ApiModelProperty("订单状态(1/2/3 ：未付款/已付款/已取消 )")
    private Integer orderStatus;
}
